package com.wd.attend.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wd.common.annotation.Excel;
import com.wd.common.core.domain.BaseEntity;

/**
 * 假期配置对象 attend_holiday
 * 
 * @author liumingkun
 * @date 2023-11-08
 */
public class AttendHoliday extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 假期Id */
    private Long holidayId;

    /** 假期名称 */
    @Excel(name = "假期名称")
    private String holidayName;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 1:休假2:加班 */
    @Excel(name = "1:休假2:加班")
    private Integer holidayTypeId;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setHolidayId(Long holidayId) 
    {
        this.holidayId = holidayId;
    }

    public Long getHolidayId() 
    {
        return holidayId;
    }
    public void setHolidayName(String holidayName) 
    {
        this.holidayName = holidayName;
    }

    public String getHolidayName() 
    {
        return holidayName;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setHolidayTypeId(Integer holidayTypeId) 
    {
        this.holidayTypeId = holidayTypeId;
    }

    public Integer getHolidayTypeId() 
    {
        return holidayTypeId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("holidayId", getHolidayId())
            .append("holidayName", getHolidayName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("holidayTypeId", getHolidayTypeId())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
